package com.focus.xyz.other.pages.picc;

import com.focus.xyz.core.common.keyword.Action;
import com.focus.xyz.core.pages.BasePage;
import org.openqa.selenium.WebDriver;

/**
 * Created by chenmeng on 2016/7/14.
 */
public class HomePage extends BasePage {
    private Action action;
    private static final String url = "https://vpn.piccjs.com/";

    public HomePage(WebDriver driver, Action action) {
        super(driver, action);
        this.action = action;
    }

    public void openPage() throws Exception{
        openPage(url);
    }

    public void ignoreCertWarning() throws Exception{
        action.getJsExcutor().executeScript("document.getElementById('overridelink').click();");
    }


}
